<!-- 
작성일 : 7월 10일
작성자 : 김종민
작성내용 : 로그인 했을때 보여지는 메뉴 회원조회 ui-grid를 사용하여 회원명단을 List하시오
 -->


<%@page import="member.MemberVo"%>
<%@page import="java.util.Vector"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name='viewport' content='width=divice-width, initial-scale=1'>
<title>layout_grid</title>

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"/>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<style>
.div_first, .div_second{
	text-align:center;
	padding:5px;
}
</style>
</head>
<body>
<jsp:useBean id="bean" class="member.Login" scope="page"/>
<jsp:setProperty property="*" name="bean"/>
<% Vector<MemberVo> v = bean.list(); %>

<label>총원 : <%=v.size()%></label>
<output id='memberCnt'>
<%
for(int i=0; i<v.size(); i++){
	int cnt =+ i;
}
%>





<div data-role='page' id='gridMain'>
	<div data-role='header' data-position='fixed'><h1>회원 조회</h1>
		<a href='index.jsp' data-role='button' data-icon='home' class='ui-btn-right'>홈으로</a>
	</div>
	<form method='post' action='jqm_member_list.jsp'>
		<input type='search' name='memberid' autocomplete='off' value='<%=bean.getMemberid() %>'>
		<input type='submit' value='검색' data-inline='true'>
	</form>
	<div data-role='content'>
				

		<div class='ui-grid-d ui-bar-c'>
			<div class='ui-block-a div_first ui-bar-b'>아이디</div>
			<div class='ui-block-b div_first ui-bar-b'>비밀번호</div>
			<div class='ui-block-c div_first ui-bar-b'>이름</div>
			<div class='ui-block-d div_first ui-bar-b'>휴대번호</div>
			<div class='ui-block-e div_first ui-bar-b'>이메일</div>
			<% for(int i=0; i<v.size() ; i++){ 
				MemberVo m = v.get(i);
			%>
			<div class='ui-block-a div_first ui-bar-d'><%=m.getMemberid()%></div>
			<div class='ui-block-b div_first ui-bar-d'><%=m.getPwd()%></div>
			<div class='ui-block-c div_first ui-bar-d'><%=m.getIrum()%></div>
			<div class='ui-block-d div_first ui-bar-d'><%=m.getPhone()%></div>
			<div class='ui-block-e div_first ui-bar-d'><%=m.getEmail()%></div>
			
			<%} %>
		</div>
	</div>
	<div data-role='footer' data-position='fixed'><h1>중앙HTA</h1></div>
</div>
</body>
</html>